Optimal. Leaf size=65 \[ -\frac{a \cos ^6(c+d x)}{6 d}+\frac{b \sin ^7(c+d x)}{7 d}-\frac{2 b \sin ^5(c+d x)}{5 d}+\frac{b \sin ^3(c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0977145, antiderivative size = 65, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {2834, 2565, 30, 2564, 270} \[ -\frac{a \cos ^6(c+d x)}{6 d}+\frac{b \sin ^7(c+d x)}{7 d}-\frac{2 b \sin ^5(c+d x)}{5 d}+\frac{b \sin ^3(c+d x)}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2834
Rule 2565
Rule 30
Rule 2564
Rule 270
Rubi steps
\begin{align*} \int \cos ^5(c+d x) \sin (c+d x) (a+b \sin (c+d x)) \, dx &=a \int \cos ^5(c+d x) \sin (c+d x) \, dx+b \int \cos ^5(c+d x) \sin ^2(c+d x) \, dx\\ &=-\frac{a \operatorname{Subst}\left (\int x^5 \, dx,x,\cos (c+d x)\right )}{d}+\frac{b \operatorname{Subst}\left (\int x^2 \left (1-x^2\right )^2 \, dx,x,\sin (c+d x)\right )}{d}\\ &=-\frac{a \cos ^6(c+d x)}{6 d}+\frac{b \operatorname{Subst}\left (\int \left (x^2-2 x^4+x^6\right ) \, dx,x,\sin (c+d x)\right )}{d}\\ &=-\frac{a \cos ^6(c+d x)}{6 d}+\frac{b \sin ^3(c+d x)}{3 d}-\frac{2 b \sin ^5(c+d x)}{5 d}+\frac{b \sin ^7(c+d x)}{7 d}\\ \end{align*}
Mathematica [A] time = 0.210732, size = 86, normalized size = 1.32 \[ -\frac{525 a \cos (2 (c+d x))+210 a \cos (4 (c+d x))+35 a \cos (6 (c+d x))+350 a-525 b \sin (c+d x)+35 b \sin (3 (c+d x))+63 b \sin (5 (c+d x))+15 b \sin (7 (c+d x))}{6720 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.027, size = 64, normalized size = 1. \begin{align*}{\frac{1}{d} \left ( -{\frac{a \left ( \cos \left ( dx+c \right ) \right ) ^{6}}{6}}+b \left ( -{\frac{\sin \left ( dx+c \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{6}}{7}}+{\frac{\sin \left ( dx+c \right ) }{35} \left ({\frac{8}{3}}+ \left ( \cos \left ( dx+c \right ) \right ) ^{4}+{\frac{4\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{3}} \right ) } \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.955289, size = 97, normalized size = 1.49 \begin{align*} \frac{30 \, b \sin \left (d x + c\right )^{7} + 35 \, a \sin \left (d x + c\right )^{6} - 84 \, b \sin \left (d x + c\right )^{5} - 105 \, a \sin \left (d x + c\right )^{4} + 70 \, b \sin \left (d x + c\right )^{3} + 105 \, a \sin \left (d x + c\right )^{2}}{210 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.6543, size = 161, normalized size = 2.48 \begin{align*} -\frac{35 \, a \cos \left (d x + c\right )^{6} + 2 \,{\left (15 \, b \cos \left (d x + c\right )^{6} - 3 \, b \cos \left (d x + c\right )^{4} - 4 \, b \cos \left (d x + c\right )^{2} - 8 \, b\right )} \sin \left (d x + c\right )}{210 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 7.31357, size = 90, normalized size = 1.38 \begin{align*} \begin{cases} - \frac{a \cos ^{6}{\left (c + d x \right )}}{6 d} + \frac{8 b \sin ^{7}{\left (c + d x \right )}}{105 d} + \frac{4 b \sin ^{5}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{15 d} + \frac{b \sin ^{3}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{3 d} & \text{for}\: d \neq 0 \\x \left (a + b \sin{\left (c \right )}\right ) \sin{\left (c \right )} \cos ^{5}{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.22036, size = 139, normalized size = 2.14 \begin{align*} -\frac{a \cos \left (6 \, d x + 6 \, c\right )}{192 \, d} - \frac{a \cos \left (4 \, d x + 4 \, c\right )}{32 \, d} - \frac{5 \, a \cos \left (2 \, d x + 2 \, c\right )}{64 \, d} - \frac{b \sin \left (7 \, d x + 7 \, c\right )}{448 \, d} - \frac{3 \, b \sin \left (5 \, d x + 5 \, c\right )}{320 \, d} - \frac{b \sin \left (3 \, d x + 3 \, c\right )}{192 \, d} + \frac{5 \, b \sin \left (d x + c\right )}{64 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]